package cn.edu.sgu.www.mhxysy.service.chongwu.impl;

import cn.edu.sgu.www.mhxysy.entity.chongwu.ChongwuNeidanType;
import cn.edu.sgu.www.mhxysy.mapper.chongwu.ChongwuNeidanTypeMapper;
import cn.edu.sgu.www.mhxysy.service.chongwu.ChongwuNeidanTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChongwuNeidanTypeServiceImpl implements ChongwuNeidanTypeService {

    private final ChongwuNeidanTypeMapper chongwuNeidanTypeMapper;

    @Autowired
    public ChongwuNeidanTypeServiceImpl(ChongwuNeidanTypeMapper chongwuNeidanTypeMapper) {
        this.chongwuNeidanTypeMapper = chongwuNeidanTypeMapper;
    }

    @Override
    public List<ChongwuNeidanType> selectAll() {
        return chongwuNeidanTypeMapper.selectList(null);
    }

    @Override
    public ChongwuNeidanType selectById(Integer id) {
        return chongwuNeidanTypeMapper.selectById(id);
    }

}